﻿CREATE TRIGGER [dbo].[tru_Note]
ON [dbo].[t_Note]
FOR UPDATE
AS
IF @@ROWCOUNT = 0 RETURN

IF EXISTS(SELECT * FROM inserted WHERE DATEDIFF(n,NoteDate,GETDATE()) < 60 AND NoteUser = dbo.UserName() )
	EXEC  sp__Context_SecurityOff 1

